import cupk.abner.AbstractIterator;
import cupk.abner.ProductList;

import java.util.ArrayList;

public class Main {
    public static void main(String[] args) {
        ArrayList<Object> products = new ArrayList<Object>();
        ProductList productList = new ProductList(products);
        productList.addObject("只狼");
        productList.addObject("巫师3");
        productList.addObject("GTA5");
        productList.addObject("埃尔登法环");
        productList.addObject("赛博朋克2077");
        AbstractIterator iterator = productList.createIterator();
        while (!iterator.isLast()) {
            System.out.print(iterator.getNextItem() + "，");
            iterator.next();
        }
    }
}